package com.ziilion;


import android.app.Activity;
import android.app.SearchManager;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

/**
 * @author wangjun <a
 *         href="mailto:wangjun.0112@gmail.com">wangjun.0112@gmail.com</a>
 * 
 */
public class ResultActivty extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.result);
		TextView textView=(TextView)findViewById(R.id.text1);
		TextView textView1=(TextView)findViewById(R.id.text2);
		Intent intent = getIntent();
		if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
			String queryString = intent.getStringExtra(SearchManager.QUERY);
			textView.setText("safsdf"+queryString);
			final Bundle appData = intent
					.getBundleExtra(SearchManager.APP_DATA);
			if (appData != null) {
				Log.i("welcome", "appDate is not null");
				textView1.setText("222"+appData.getString("welcome"));
			} else {
				Log.i("welcome", "appDate is  null");
			}
		}
	}
}
